package ar.com.globallogic.promomr.api.resources;

import java.util.Date;
import java.util.List;

import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import ar.com.globallogic.promomr.utils.CustomDateDeserializer;
import ar.com.globallogic.promomr.utils.CustomDateSerializer;

public class PublicationRequest {
	
	private String contentId;
	private Date publicationDate;
	private List<PublicationFilterRequest> filters;
	
	public String getContentId() {
		return contentId;
	}
	
	public void setContentId(String contentId) {
		this.contentId = contentId;
	}
	
	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getPublicationDate() {
		return publicationDate;
	}
	
	@JsonDeserialize(using = CustomDateDeserializer.class)
	public void setPublicationDate(Date publicationDate) {
		this.publicationDate = publicationDate;
	}

	public List<PublicationFilterRequest> getFilters() {
		return filters;
	}

	public void setFilters(List<PublicationFilterRequest> filters) {
		this.filters = filters;
	}
}
